
package chapter04.Example11;

interface  Animal{
    int ID = 1;
    String NAME = "牧羊犬";
    void shout();
    static  int getId(){
        return Animal.ID;
    }
    public void info();
}
interface Action{
    public void eat();
}
class Dog implements Animal, Action {
    public void eat(){
        System.out.println("喜欢吃骨头");
    }
    public void shout(){
        System.out.println("汪汪汪......");
    }
    public void info(){
        System.out.println("名称:"+NAME);
    }
